from django.urls import path
from . import views

app_name = 'users'

urlpatterns = [
    # 认证相关
    path('register/', views.register, name='register'),
    path('login/', views.custom_login, name='login'),
    path('logout/', views.user_logout, name='logout'),
    path('password-reset/', views.password_reset, name='password_reset'),

    # path('password-reset-confirm/', views.password_reset_confirm, name='password_reset_confirm'),
    path('send-verify-code/', views.send_verify_code, name='send_verify_code'),
    path('reset-password/', views.reset_password, name='reset_password'),


    
    # 用户资料
    path('profile/', views.profile, name='profile'),
    path('profile/edit/', views.profile_edit, name='profile_edit'),
    path('profile/<int:user_id>/', views.user_profile, name='user_profile'),
    
    # 用户活动历史
    path('my-activities/', views.my_activities, name='my_activities'),
    path('my-registrations/', views.my_registrations, name='my_registrations'),


    # 头像
    path('avatar/update/', views.update_avatar, name='update_avatar'),
    path('avatar/delete/', views.delete_avatar, name='delete_avatar'),

# 关注相关
    path('my-following/', views.my_following, name='my_following'),
    path('my-followers/', views.my_followers, name='my_followers'),
]
